// 模拟接口请求
import { NEWS_LIST } from '@/constants/data'

// 新闻列表
export const getNewsList = () => {
  const data = NEWS_LIST
  return new Promise(resolve => {
    setTimeout(() => {
      resolve({
        code: 200,
        count: data.length,
        data
      })
    }, 100);
  })
}
